package com.platform.modules.chat.domain;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import com.platform.common.web.domain.BaseEntity;
import lombok.Data;
import lombok.experimental.Accessors;

import java.math.BigDecimal;
import java.util.Date;

/**
 * <p>
 * 支付实体类
 * </p>
 */
@Data
@TableName("chat_pay")
@Accessors(chain = true) // 链式调用
public class ChatPay extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    private String id;
    /**
     * 用户id
     */
    @JsonSerialize(using = ToStringSerializer.class)
    private Long userId;
    /**
     * 支付金额
     */
    private BigDecimal amount;
    /**
     * 分成比例
     */
    private BigDecimal divide;
    /**
     * 分成金额
     */
    private BigDecimal divideAmount;
    /**
     * 状态
     */
    private Integer status;
    /**
     * 生效日期
     */
    private Date startDate;
    /**
     * 失效日期
     */
    private Date endDate;
}
